.global _start

_start:
    # syscall number please refer to
    # https://github.com/westerndigitalcorporation/RISC-V-Linux/blob/master/riscv-pk/pk/syscall.h
    # STDOUT FD = 1
    li  a7, 64         # syscall[write]
    li  a0, 1          # (fd = 1,
    la  a1, helloworld # buf = *helloworld,
    li  a2, 14         # size = 14)
    ecall

    li  a7, 93         # syscall[exit]
    li  a0, 0          # (status = 0)
    ecall

helloworld:
    .ascii "hello, world\n"
